package com.company.OfferGuide;

public class 矩形重叠 {


    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {
        if(rec2[0] < rec1[2] && rec2[1] < rec1[3] && rec2[2] > rec1[0] && rec2[3] > rec1[1] )
            return true;
        else
            return false;

    }

}
